{% extends 'InterArticleBundle::layout.admin.html.twig' %}


{% block header_title %}ARTICLE{% endblock %}

{% block content %}
<div class="row">
					
	<!-- Basic forms -->
	<div class="col-lg-6">
		<div class="module">
			<div class="module-header"><h4>EDIT</h4></div>
			<div class="module-content">
	
				<form action="{{ path('inter_article_admin_edit_article') }}?id={{ id }}" method="post" {{ form_enctype(form) }} class="form-horizontal" />
	
					<div class="form-group">
						 {{ form_label(form.title) }}
        				 {{ form_errors(form.title) }}        						
						<div class="col-lg-10">
							{{ form_widget(form.title) }}
						</div>
					</div>
	
					
	
					<div class="form-group">
						{{ form_label(form.description) }}
        				 {{ form_errors(form.description) }} 
						<div class="col-lg-10">
							{{ form_widget(form.description) }}
						</div>
					</div>
					
					<div class="form-group">
						{{ form_label(form.content) }}
        				 {{ form_errors(form.content) }} 
						<div class="col-lg-10">
							{{ form_widget(form.content) }}
						</div>
					</div>
					{{ form_rest(form) }}
					<div class="form-group">
						<div class="col-lg-offset-2 col-lg-10">
							<button type="submit" class="btn btn-primary">Save changes</button>
							<button class="btn btn-default" onclick="location.href='{{ path('inter_article_admin_list_article') }}'">Cancel</button>
						</div>
					</div>
	
				</form>
	
			</div>
		</div>
	</div>
	<!-- /Basic forms -->

</div>
{% endblock %}